--[[
  多点颜色比对 - 1
  --
  -- 用于 滑动比对是否 到底了
  --
  -- 使用后，再滑动
]]--

function RxMuitlColor_getCos(pointColors)
  local defaultColors = {{177,463},{168,476},{191,476},{178,479},{178,489}}
  local lastPoints = pointColors or defaultColors
  local pointLen = RxTable:len(lastPoints)

  local colorTable = {}
  local pp = 0
  keepScreen(true)
  while true do
    pp = pp + 1
    if pp > pointLen then break end
    local lp = lastPoints[pp]
    local px,py = lp[1], lp[2]
    local co = getColor(px, py)
    colorTable[pp] = {px, py, co}
  end
  keepScreen(false)
  return colorTable
end

--[[
  多点颜色比对 - 2
  --
  -- 用于 滑动比对是否 到底了
  --
  -- 使用前，先滑动
]]--
function RxMuitlColor_EqaulCos(cos, dim, flag)
  dim = dim or 90
  flag = flag or false
  local equal = false
  if multiColor(cos, {dim = dim, flag = flag}) == true then
    RxLog('RxMuitlColor_areaEqaulColors true true true')
    equal = true
  end
  return equal
end

